﻿using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.Xna.Framework;

namespace Z2.Core
{
	public class ParticleSettings
	{

		private const float DefaultPower = 5F;
		
		private Vector2 m_power;
		private int m_ammount;
		private ParticleType m_type;
		private Vector2 m_lifetime;
		private bool m_hasLight;

		private static readonly ParticleSettings _defaultSettings;

		static ParticleSettings()
		{
			_defaultSettings = new ParticleSettings();
		}

		public ParticleSettings()
		{
			this.Power = new Vector2(ParticleSettings.DefaultPower);
			this.Ammount = 1;
			this.LifeTime = new Vector2(1500, 3500);
			this.HasLight = true;
		}

		public static ParticleSettings Default
		{
			get { return _defaultSettings; }
		}

		public bool HasLight
		{
			get { return this.m_hasLight; }
			set { this.m_hasLight = value; }
		}

		public Vector2 LifeTime
		{
			get { return this.m_lifetime; }
			set { this.m_lifetime = value; }
		}

		public ParticleType Type
		{
			get { return this.m_type; }
			set { this.m_type = value; }
		}

		public int Ammount
		{
			get { return this.m_ammount; }
			set { this.m_ammount = value; }
		}

		public Vector2 Power
		{
			get { return this.m_power; }
			set { this.m_power = value; }
		}
	}
}
